var yauzl = require('./yauzl-local');
var fs = require('fs')
var buf = fs.readFileSync('./output.zip');
var pt = require('path');
yauzl.fromBuffer(buf, function(err, zipfile){
    if (err) console.error(err);
    zipfile.on("entry", function(entry) {
      console.log(entry);
      zipfile.openReadStream(entry, function(err, readStream) {
        if (err) throw err;
        console.log('filename:', entry.fileName)
        // ensure parent directory exists, and then:
        readStream.pipe(process.stdout);
      });
    });
});
